<% content_for :head do  %>
  <%= stylesheet_link_tag 'newspicmemo'  %>
  <%= stylesheet_link_tag 'newslist'  %>
  <%= stylesheet_link_tag 'productclass_dolphin'  %>
  <%= stylesheet_link_tag 'productlist_cyrano_lef'  %>
  <%= stylesheet_link_tag 'newsquery'  %>
<% end %>



<%= render :partial => "/shared/categories" %>

<!-- HTML编辑区 -->
<%= render :partial => "/shared/contactus" %>
<div style="width: 730px; height: 36px; top: 13px; left: 250px; z-index: 13;" title="新闻检索" class="pdv_class" id="pdv_23541">
  <div style="overflow: hidden; width: 100%; height: 100%;" class="pdv_content" id="spdv_23541">
    <div style="border: 0px none; height: 36px; padding: 0pt; margin: 0pt; background: url(/images/news_bgtitle.jpg) no-repeat scroll 0px 0px transparent;" class="pdv_border">
      <div style="float: left; font: 14px/32px Simsun; color: rgb(0, 0, 0); padding-left: 47px;">新闻检索</div>

      <div id="nav">
        您现在的位置：<a href="/">机械零部件制造公司</a>

        &gt; <a href="/articles">新闻中心</a>

      </div>
      <div class="img"></div>

    </div>

  </div>
</div>


<div style="width: 698px; height: 374px; top: 80px; left: 263px; z-index: 14;" title="文章检索" class="pdv_class" id="pdv_23540">
  <div style="overflow: visible; width: 100%;" class="pdv_content" id="spdv_23540">
    <div style="margin: 0pt; padding: 0pt; height: 100%; border: 0px solid;" class="pdv_border">
      <div style="height: 25px; margin: 1px; display: none;">
        <div style="float: left; margin-left: 12px; line-height: 25px; font-weight: bold;">
		文章检索
        </div>
        <div style="float: right; margin-right: 10px; display: none;">
          <a style="line-height: 25px;" href="-1">更多</a>
        </div>
      </div>
      <div style="padding: 0px;">


        <div id="newsquery">
          <ul id="queryul">

            <% @articles.each do |article| %>
              <li class="title">
                <div class="title"><a target="_self" href="<%= article_path(article) %>"><%= article.title %></a></div>
                <div class="time"><%= article.created_at.strftime("%Y-%m-%d") %></div>
              </li>

            <% end %>






          </ul>
        </div>

        <div id="showpages">
          <%= will_paginate @articles %>
          <style type="text/css">
            .pagination{    text-align: center;}
            .pagination a {
              background-color: #EEEEEE;
              border: 1px solid #DCD9D4;
              color: #303030;
              white-space: nowrap;
              border: 1px solid #DCD9D4;
              color: #303030;
              list-style-type: none;
              margin: 3px;
              padding: 2px 5px;
              white-space: nowrap;
            }
            .pagination .prev_page , .pagination .next_page  , .pagination span{
              background-color: #DCD9D4;
              border: 1px solid #DCD9D4;
              color: #303030;
              padding: 3px 5px 1px;
              white-space: nowrap;
            }


          </style>


        </div>


      </div>
    </div>

  </div>
</div>